#!/bin/bash
OPTION=$(whiptail --title "Revin's server login server" 
    \--menu "Choose your server" 15 60 4 
	\"1" "ESB-04"  
	\"2" "ESB-02" 
	\"3" "ESB-03" 
	\"4" "aliyun"  3>&1 1>&2 2>&3)
 
exitstatus=$?
if [ $exitstatus = 0 ]; then
	case $OPTION in
	1)
	echo "connect to ESB-04 ..."
	ssh xxxx@192.168.11.61
        ;;
        2)
	echo "connect to ESB-02 ..."
	ssh xxxx@192.168.11.55
	;;
	3)
	echo "connect to ESB-03 ..."
	ssh xxxx@192.168.11.56
	;;
	4)
	echo "connect aliyun ..."
	ssh root@123.57.29.xxx
	;;
	*)
	echo "no select"
	esac
else
    echo "You chose Cancel."
fi